<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<SCRIPT LANGUAGE="JavaScript">
<!--
	var a;
	a="2";
	function viewNameText(){
		var nameValue = document.getElementById("name").value;
		var divObj = document.getElementById("divObj");
		alert(divObj.innerHTML);
		divObj.innerHTML += nameValue;
	}
	
	
	
	function cacl(){
		
		var num1 = 1;
		var num2 = 2;
		
		var result = num1+num2;
		alert(result);
	}
//-->
</SCRIPT>
<body>
<form action="edu01.login" method="post">
	이름 : <input type="text" name="name" id="name"/>
	성별 : <input type="text" name="sex" id="sex"/>
	나이 : <input type="text" name="age" id="age"/>
	주소 : <input type="text" name="address" id="address"/>
	<input type="submit" value="이름전송" id="bnt1"/>
	<div id="divObj" style="border:1 bold #fbfbfb"> name : <br> 성별:<input type="text" id="sex"></div>
</form>
</body>
</html>